home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / wget_145.zip / INSTALL < prev    next >
Text File  |  1997-02-13  |  3KB  |  75 lines

  1.                                                                    -*- text -*-
  2.             Installation Procedure
  3.  
  4. 0) Preparation
  5.  
  6. To build and install GNU Wget, you need to unpack the archive (which
  7. you have presumably done, since you are reading this), and read on.
  8. Like most GNU utilities, Wget uses the GNU Autoconf mechanism for
  9. build and installation; those of you familiar with compiling GNU
  10. software will feel at home.
  11.  
  12. 1) Configuration
  13.  
  14. To configure Wget, run the configure script provided with the
  15. distribution.  You may use all the standard arguments configure
  16. scripts take.  The most important ones are:
  17.  
  18.   --help                  print help message
  19.  
  20.   --prefix=PREFIX         install architecture-independent files in PREFIX
  21.                           (/usr/local by default)
  22.   --bindir=DIR            user executables in DIR (PREFIX/bin)
  23.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  24.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  25.  
  26.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  27.   --host=HOST             configure for HOST [guessed]
  28.   --target=TARGET         configure for TARGET [TARGET=HOST]
  29.  
  30.   --with-socks            compile in the support for socks
  31.  
  32. The Wget-specific option configure accepts is --with-socks, which
  33. means to build Wget with support for socks library (only in case you
  34. are accessing internet through a socks gateway).
  35.  
  36. So, if you want to configure Wget for installation in your home
  37. directory, you can type:
  38. ./configure --prefix=$HOME
  39.  
  40. You can customize many default settings by editing Makefile and
  41. config.h.  The program will work very well without your touching these
  42. files, but it is useful to have a look at things you can change there.
  43.  
  44. If you use socks, it is useful to add -L/usr/local/lib (or wherever
  45. the socks library is installed) to LDFLAGS in Makefile.
  46.  
  47. To configure Wget on Windows, run configure.bat and follow the
  48. instructions in the windows/ directory.  If this doesn't work for any
  49. reason, talk to <dbudor@zems.fer.hr>; I do not maintain the port.
  50.  
  51. 2) Compilation
  52.  
  53. To compile the program, type make and cross your fingers.  If you do
  54. not have an ANSI compiler, Wget will try to KNR-ize its sources "on
  55. the fly".  This should make GNU Wget compilable virtually anywhere.
  56.  
  57. After the compilation a ready to use `wget' executable should reside
  58. in the src directory.  I do not have any kind of test-suite as of this
  59. moment, but it should be easy enough to test whether the basic stuff
  60. works.
  61.  
  62. 3) Installation
  63.  
  64. Use `make install' to install GNU Wget to directories specified to
  65. configure (/usr/local/* by default).
  66.  
  67. The standard installation process will copy the wget binary to
  68. /usr/local/bin, install the info pages (wget.info*) to /usr/local/info
  69. and installing the manual page (wget.1) to /usr/local/man/man1.  You
  70. can customize the directories either through the configuration process
  71. or making the necessary changes in the Makefile.
  72.  
  73. To delete the files created by Wget installation, you can use make
  74. uninstall.
  75.